<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<link type="text/css" rel="stylesheet" href="<%=basePath%>statics/js/plug/jbox/jBox.css"/>
<script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/plug/jbox/jBox.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/app/appdictionary/app_dictionary_edit.js"></script>
<style>

.advanced_table tr{
	height: 35px;
}
.advanced_table attr{
	background-color: #fff;
	border: 0;
	width: 65px;
}
.advanced_table tr td input{
	width: 325px;
}
</style>
<div class="window-title-bar" style="background-color: white;">
    <h5 class="title" >修改字典</h5>
</div>
			<form id="updateForm">
				<input id="updateId" name="id" type="hidden" value="${appDictionary.id }">
				<table class="advanced_table" style="width: 100%;" border="0">
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>字典编码：</span></td>
						<td style="border: 0;">
							<input id="labelEdit" type="text" name="code" value="${appDictionary.code}">
							<img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10"></td>
					</tr>
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>字典名称：</span></td>
						<td style="border: 0;">
							<input id="permissionEdit" type="text" name="name" value="${appDictionary.name}">
							<img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
						</td>
					</tr>
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>父节点 ：</span></td>
						<td style="border: 0;"><input id="dictionaryAddListEdit" type="text"
							name="dictionaryAddListEdit" readonly="readonly" value="${parent.name }"><input
							id="parentIdEdit" name="parentId" type="hidden" value="${appDictionary.parentId }" /> <img alt=""
							src="<%=basePath%>statics/images/common/star.gif" width="9"
							height="10"></td>
					</tr>
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>排&nbsp;&nbsp;&nbsp;&nbsp;序：</span></td>
						<td style="border: 0;"><input id="sortFlagEdit" type="text" name="sortFlag" value="${appDictionary.sortFlag }">
						<img alt=""src="<%=basePath%>statics/images/common/star.gif" width="9"
							height="10">
						</td>
					</tr>
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>值：</span></td>
						<td style="border: 0;"><input id="value" type="text" name="value" value="${appDictionary.value}" >		
						</td>
					</tr>
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>是否显示：</span></td>
						<td style="border: 0;">&nbsp; <input style="width: 30px;" class="radio"
							id='status_one_Edit' name='status' type='radio' value="0" ${appDictionary.status == 0 ? "checked" : ""} style="width: 30px;"><span style="margin-right: 11px;">显示</span>&nbsp;
							<input style="width: 30px;" class="radio" name='status'
							id='status_two_Edit' type='radio' value="1"${appDictionary.status == 1 ? "checked" : ""} style="width: 30px;"><span>不显示</span>
						</td>
					</tr>
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>刷新缓存：</span></td>
						<td style="border: 0;">&nbsp; <input style="width: 30px;" class="radio"
							 name='isRefreshCache' type='radio' value="0" checked="checked" style="width: 30px;"/><span>不刷新</span>&nbsp;
							<input style="width: 30px;" class="radio" name='isRefreshCache'
							 type='radio' value="1" style="width: 30px;"><span>刷新</span>
						</td>
					</tr>
					
					
					
					<tr>
						<td class="attr" style="background-color: #fff;border: 0;width: 65px;"><span>备&nbsp;&nbsp;注：</span></td>
						<td  style="border: 0;">
								<input id="remark" type="text" name="remark" value="${appDictionary.remark }">
						</td>
					</tr>
				</table>
				<div class="buttons" style="text-align:  -webkit-auto;margin-left: 7%;">
	       		 <button type="submit" class="blur" style="margin-top: 20px;float: left;">更新</button>
	       		 <input type="button" value="取消" onclick="heavyLoad();" style="margin-top: 20px;margin-left: 30px;float: left;">
	      	  	 <button id="deleteBtn" class="blur" type="button" onclick="deleteById();" style="margin-top: 20px;margin-left:30px;float: left;">删除</button>
    	 		</div>
			</form>
